package io.sdl.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.sdl.entity.RoleUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色用户关系
 * 
 * @author Dc
 * @email 1211734836@qq.com
 * @date 2025-04-15 15:39:38
 */
@Mapper
public interface RoleUserDao extends BaseMapper<RoleUserEntity> {


    List<RoleUserEntity> selectByUserId(Long userId);

    RoleUserEntity getRoleUserByRoleIdAndUserId(Long roleId, Long userId);

    Integer unbindRole(@Param("userId") long userId,@Param("roleId") long roleId);
}
